//
//  ZJHWoDeTableViewCell.m
//  KCZ_B段项目
//
//  Created by dllo on 15/11/3.
//  Copyright © 2015年 Sky. All rights reserved.
//

#import "ZJHWoDeTableViewCell.h"
#import "FontSizeSingleTon.h"
#import "FitHeader.h"
#define FontSize [[FontSizeSingleTon shareFontSize]array]
@implementation ZJHWoDeTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createCell];
    }
    return self;
}
#pragma mark 创建cell
-(void)createCell
{
    _leftImageView = [[UIImageView alloc]init];
    [self.contentView addSubview:_leftImageView];
    
    _titleLable = [[UILabel alloc]init];
    _titleLable.font = [UIFont systemFontOfSize:[FontSize[1] integerValue]];
    [self.contentView addSubview:_titleLable];
    
    _rightImageView = [[UIImageView alloc]init];
    _rightImageView.image = [UIImage imageNamed:@"iconfont-icontabright"];
    [self.contentView addSubview:_rightImageView];
}
#pragma mark cell控件frame
-(void)layoutSubviews
{
    [super layoutSubviews];
    _leftImageView.frame = CGRectMake(10 * wt, 10 * ht, 20 * wt, 20 * ht);
    _titleLable.frame = CGRectMake(_leftImageView.frame.origin.x + _leftImageView.frame.size.width + 10 * wt, _leftImageView.frame.origin.x, 150 * wt, _leftImageView.frame.size.height);
    _rightImageView.frame = CGRectMake(345 * wt, 15 * ht, 10 * wt, 10 * ht);
}
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
